package org.jeecg.modules.iot.model.power;

import lombok.Data;

import java.sql.Timestamp;

@Data
public class TaiPower {
    /*剩余电量百分比*/
    private Timestamp ts;
    private Float rPowCap=0f;
    /*剩余电量 单位Wh 瓦时*/
    private Float rPow=0f;

    /*单次统计消耗电量*/
    private Float fpower=0f;
    /*电池电压*/
    private Float voltage=0f;
    private Float current=0f;
    /*累计耗电*/
    private Float ePower=0f;
    private Integer soh = 100; // 默认值为 100%
    private String deviceId;
    private String tableName;

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
        this.tableName="p"+deviceId;
    }

}
